Dialog
Moz0.9.4This element should be used in place of the window element for dialog boxes. The buttons attribute may be used to set which buttons should appear in the dialog box. These buttons will be placed in the correct locations.
Attributes:
Attributes inherited from XUL Element
The value of the 'align' attribute for the box containing the buttons.
The value of the 'dir' attribute for the box containing the buttons.
The value of the 'orient' attribute for the box containing the buttons.
The value of the 'pack' attribute for the box containing the buttons.
A comma-separated list of buttons to appear on the dialog box. The buttons will be placed in suitable locations for the user's platform and basic event handling will be performed automatically. The following values can be used in the list:
- accept: The OK button, which will accept the changes when pressed. This button will also be the default button.
- cancel: The cancel button which will cancel the operation.
- help: A help button for displaying help about the dialog.
- disclosure: A button to show more information. This might be a button or a disclosure triangle.
The code in this attribute is called when the OK button is pressed, or when the acceptDialog function is called.
The code in this attribute is called when the Cancel button is pressed, or when the cancelDialog function is called.
The code in this attribute is called when the disclosure button is pressed.
The code in this attribute is called when the Help button is pressed.
Properties and Methods:
Properties and Methods inherited from XUL Element
Accepts the dialog and closes it, similar to pressing the OK button.
A comma-separated list of buttons to appear on the dialog box. The buttons will be placed in suitable locations for the user's platform and basic event handling will be performed automatically. The following values can be used in the list:
- accept: The OK button, which will accept the changes when pressed. This button will also be the default button.
- cancel: The cancel button which will cancel the operation.
- help: A help button for displaying help about the dialog.
- disclosure: A button to show more information. This might be a button or a disclosure triangle.
Cancels the dialog and closes it, similar to pressing the Cancel button.
Returns the button element in the dialog corresponding to the given type.